package momo.app.multicast;

import java.util.Map;
import java.util.Set;

/**
 * The listener interface for receiving events from the communication library. 
 * 
 * @author Jackson Tan
 * @version 1, 02/04/09
 *
 */
public interface MsgRcvListener
{
	/**
	 * Invoked when the library receives a message from connected clients or when self sent.
	 * @param msg message received.
	 */
	public void msgReceived(Msg msg);
	
	/**
	 * Invoked when message that are sent with state vectors are lost.
	 * @param lostMsg all the ids of the lost messages
	 */
	public void msgLost(Map<String, Set<Integer>> lostMsg);
}//end of interface MsgRcvListener
